Right now our random number can only be a number between 1 and 10, so our rectangles are really short.

  • Find the .randint() command.
  • Change its parameters to (50, 300).

Now our blocks will have a random height between 50 and 300 pixels.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)